package src.montecarlo;

public class SimulateIsing {

	public static void main(String[] argvs){
		
		int large;
		double J; //coupling energy
		double B; //magnetic field
		double temperature;
		
		try{
			large = new Integer(argvs[0]);
			J = new Double(argvs[1]);
			B = new Double(argvs[2]);
			temperature = new Double(argvs[3]);
			
		}catch(Exception e){
			showUsage();
			return;
		}
				
		Ising2D simulator = new Ising2D(large,B,J,temperature);
		
		
		
	}
	private static void showUsage() {
		
		System.out.println("Usage: ");	
		System.out.println("<sampleSize> <delta> <eps> <outputFile>\n");
		
		System.out.println("<sampleSizew>: Size of the sample.");
		System.out.println("<delta>: step to explore when creating the distribution.");
		System.out.println("<eps>: number(integer) to jump between sampling rates.");
		System.out.println("<outputFile>: where to save the results.");
	}
	
}
